package com.life.wd.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class CommunityPostAddRequest {
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    
    @NotNull(message = "帖子标题不能为空")
    @Size(max = 100, message = "帖子标题长度不能超过100个字符")
    private String title;
    
    @NotNull(message = "帖子内容不能为空")
    private String content;
    
    @NotNull(message = "封面图片不能为空")
    private MultipartFile coverFile; // 封面图片
}